package com.example.orderedbroadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;

public class MyBroadcastReceiverTwo extends BroadcastReceiver {
    private static final String TAG = "MyBroadcastReceiver";
    @Override
    public void onReceive(Context context, Intent intent) {
        Log.i(TAG, "自定义的广播接收者Two,接收到了广播事件！");
        abortBroadcast();  //拦截有序广播
        Log.i(TAG, "我是广播接收者Tow，广播被我拦截了！ ");
    }
}
